﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace NutriLeaf.Web.Core.Food
{
    public class FoodCategory:IFoodCategory
    {
        public void AddFoodCategory(string categoryName, string categoryDescription, ref Model.NutriLeafDBEntities context)
        {
            Model.FoodCategory category = new Model.FoodCategory();
            category.Name = categoryName;
            category.Description = categoryDescription;
            context.FoodCategories.AddObject(category);
            context.SaveChanges();
        }

        public void AddFoodSubCateogy(string categoryName, string categoryDescription, Model.FoodCategory parentCategory, ref Model.NutriLeafDBEntities context)
        {
          
           

        }

        public void AddFoodSubCateogy(string categoryName, string categoryDescription, int parentCategoryId, ref Model.NutriLeafDBEntities context)
        {
            throw new NotImplementedException();
        }

        public List<Model.FoodCategory> GetSubCategories(int foodCategoryId, ref Model.NutriLeafDBEntities context)
        {
            throw new NotImplementedException();
        }

        public Model.FoodCategory GetParentCategory(int foodCategoryId, ref Model.NutriLeafDBEntities context)
        {
            throw new NotImplementedException();
        }

        public Model.FoodCategory GetFoodCategory(int foodCategoryId, ref Model.NutriLeafDBEntities context)
        {
            throw new NotImplementedException();
        }

        public void RemoveAllSubCategories(int foodCategoryId, ref Model.NutriLeafDBEntities context)
        {
            throw new NotImplementedException();
        }

        public void RemoveFoodCategory(int foodCategoyrId, ref Model.NutriLeafDBEntities context)
        {
            throw new NotImplementedException();
        }

        public void AddFoodToFoodCategory(int foodId, int foodCategoryId, ref Model.NutriLeafDBEntities context)
        {
            throw new NotImplementedException();
        }

        public void RemoveFoodFromFoodCategory(int foodId, int foodCategoryId, ref Model.NutriLeafDBEntities context)
        {
            throw new NotImplementedException();
        }

        public List<Model.FoodCategory> GetFoodCategoriesOfFood(int foodId, ref Model.NutriLeafDBEntities context)
        {
            throw new NotImplementedException();
        }

        public List<Model.Food> GetFoodsInCategory(int categoryId, ref Model.NutriLeafDBEntities context)
        {
            throw new NotImplementedException();
        }
    }
}